package md.rdcrng.cvs;

import javax.enterprise.event.Observes;
import javax.enterprise.inject.spi.AfterBeanDiscovery;
import javax.enterprise.inject.spi.Extension;

/**
 <p/>
 @author Radu Creanga <rdcrng@gmail.com>
 */
class ViewExtension implements Extension {

    protected void afterBeanDiscovery(@Observes AfterBeanDiscovery event, ViewStorage viewStorage) {
        event.addContext(new ViewContext(viewStorage));
    }

}
